<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>学生管理</title>
<meta name="decorator" content="default" />
<script type="text/javascript">
	function page(n, s) {
		$("#pageNo").val(n);
		$("#pageSize").val(s);
		$("#searchForm").submit();
		return false;
	}
</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="#">学生列表</a></li>
		<shiro:hasPermission name="sys:dict:edit">
			<li><a href="#">学生添加</a></li>
		</shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="student"
		action="${ctx}/sys/student/" method="post"
		class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}" />
		<input id="pageSize" name="pageSize" type="hidden"
			value="${page.pageSize}" />
		<label>学号：</label>
		<form:input path="sNo" htmlEscape="false" maxlength="50" class="input-medium" />
		<label>姓名：</label>
		<form:input path="name" htmlEscape="false" maxlength="50" class="input-medium" />
		<label>年龄：</label> 
		<form:input path="age" htmlEscape="false" maxlength="50" class="input-medium" />
		<label>地址：</label>
		<form:input path="address" htmlEscape="false" maxlength="50" class="input-medium" />
		<label>身高：</label>
		<form:input path="height" htmlEscape="false" maxlength="50" class="input-medium" />
		 <label>职务：</label>
		<form:input path="weight" htmlEscape="false" maxlength="50" class="input-medium" />
		&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit"
			value="查询" />
	</form:form>
	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>学号</th>
				<th>姓名</th>
				<th>年龄</th>
				<th>地址</th>
				<th>身高</th>
				<th>体重</th>
				<th>职务</th>
				<%-- <shiro:hasPermission name="sys:dict:edit"> --%>
				<th>操作</th>
			<%-- 	</shiro:hasPermission> --%>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list}" var="student">
				<tr>
					<td>${student.sNo}</td>
					<td>${student.name}</td>
					<td>${student.age}</td>
					<td>${student.address}</td>
					<td>${student.height}</td>
					<td>${student.weight}</td>
					<td>${student.position}</td>
					<%-- <shiro:hasPermission name="sys:student:edit"> --%>
					<td><a href="${ctx}/sys/student/form?id=${student.id}">修改</a> <a
							href="${ctx}/sys/student/delete?id=${student.id}"
							onclick="return confirmx('确认要删除该字典吗？', this.href)">删除</a> <a
							href="<c:url value='${fns:getAdminPath()}/sys/dict/form?type=${dict.type}&sort=${dict.sort+10}'><c:param name='description' value='${dict.description}'/></c:url>">详情</a>
					</td>
			<%-- 	</shiro:hasPermission> --%>
				</tr>
			</c:forEach>
		</tbody>
		
	</table>
	<div class="pagination">${page}</div>
</body>
</html>